﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VisualPoint.Controls.Actions;

namespace VisualPoint.Controls.Views
{
    public class BaseEditor<T> : Window, IActionEditor<T>
        where T : BaseAction
    {
        public T Action
        {
            set
            {
                DataContext = value;
            }
        }

        protected void Ok_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            Close();
        }

        protected void Cancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            Close();
        }

    }
}
